<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "aclass".
 *
 * @property int $classid 班级id
 * @property string $name 班级名字
 * @property string $headmaster 班主任名
 * @property int $headmasterid 班主任id
 * @property string $create_time 创建时间
 */
class Aclass extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'aclass';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['name', 'headmaster', 'headmasterid'], 'required'],
            [['headmasterid','state'], 'integer'],
            [['create_time'], 'safe'],
            [['name', 'headmaster'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'classid' => 'Classid',
            'name' => 'Name',
            'headmaster' => 'Headmaster',
            'headmasterid' => 'Headmasterid',
            'create_time' => 'Create Time',
            'state' => 'State',
        ];
    }
}
